package com.mh.study.jackson.annotations;

import com.fasterxml.jackson.annotation.JsonView;

/**
 * @author meng.han
 * @since 2021-11-26
 */
public class Item {

    public Item() {
    }

    public Item(int id, String itemName, String ownerName) {
        this.id = id;
        this.itemName = itemName;
        this.ownerName = ownerName;
    }

    @JsonView(Views.Public.class)
    public int id;

    @JsonView(Views.Public.class)
    public String itemName;

    @JsonView(Views.Internal.class)
    public String ownerName;

}
